package com.cloud.spring.demo.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@TableName("biz_user")
@Data
@Component
public class User extends BaseEntity {
    private int id;
    private String name;
    private LocalDateTime createTime;
    private LocalDate birth;
    @TableField(exist = false)
    private List<Address> address;
}
